class DemoController < ApplicationController
  before_filter :sys_before_log
  def index
    crs = Checkrecord.all
    crs.each do |cr|
      cr.train_task_id = cr.maintenance ? cr.maintenance.train_task_id : nil
      cr.save
    end
  end

  def text
    puts params[:anInOutMode]+"。。。。。。。。。。"+params[:vnDeviceID]+"........."+params[:anSEnrollNumber]+"..........."+params[:anLogDate]
    puts "监控开启。。。。。。。。。。。"
  end

end
